home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 August / August CD.bin / Shareware / Education / MacPattern 3.2 / Help Data / Help Data.rsrc / TEXT_422_Index Files.txt < prev    next >
Encoding:
Text File  |  1993-12-07  |  2.5 KB  |  36 lines

  1. To speed up operation, MacPattern uses index files that contain pointers into the actual pattern or block database files as well as specific information about the individual patterns and blocks.
  2.  
  3. Note: If you want to use a new database for the first time or if you made any changes to a database file, you have to index the database first!
  4.  
  5. Index files carry the extension .inx and must be stored in the same folder as the database files.
  6.  
  7. (Technical information: The creatior signature of index files is 'MCpt', the file type of pattern index files is 'MCPX', and the file type of block index files is 'MCPB')
  8.  
  9. Indexing is performed by selecting New Index from the File menu. A standard directory dialog box will appear and ask you to select the database data file, i.e. a .dat file, for example prosite.dat or blocks.dat.
  10.  
  11. If you want to index a pattern database, MacPattern will then look for the existence of a corresponding .doc file in the same folder and use the information contained in there, if available. Block databases do not require a .doc file.
  12.  
  13. At the end of indexing it will ask you whether you want to sort the database alphabetically or not. If you want to do so, click the Sort button. Otherwise the order of entries will be preserved as given in the database .dat file.
  14.  
  15. You can move around the .dat, .doc and .inx files on your disk, but make sure you always keep them together in one folder.
  16.  
  17.  Note: MacPattern uses file names to identify files which belong together. Therefore, if you want to rename your database files, always rename all of them and preserve the extensions .dat, .doc, and .inx.
  18.  
  19.  
  20. System 7
  21.  
  22. Under System 7, you can use aliases for the index file or the data files, so you may move the database files and the index file to a file server, for instance. In this case you only need  the alias for the index file in your local directory and not the database files, but, again, always keep the original .inx, .dat, and .doc files together in one directory.
  23.  
  24. A possible setup could therefore be:
  25.  
  26. - One directory with the PROSITE database
  27.    and index files.
  28.  
  29. - Another directory with the BLOCKS database
  30.    and index file.
  31.  
  32. - A third directory with the MacPattern application
  33.    and aliases pointing to the PROSITE and BLOCKS
  34.    index files.
  35.  
  36. An alternative approach which has the advantage that you one make changes to the index files is to keep the original index file plus aliases to the database files in one directory on the local hard disk, the aliases pointing to database files on a file server.